﻿@model BudgetMealsModels.Entities.Comment

@{
    Layout = null;
}
@if(Model != null){
<div id="Reply@(Model.CommentID)">
    <p id="replier">
        <b> @Html.ActionLink(Model.UserCreated, "Profile", "User", new { id = Model.UserCreatedID }, null) replies: </b>
    </p>
    <p style="margin-left: 25px;">@Model.Review</p>
    @if(Model.UserCreatedID == (int)Session["CurrentUser"]){
        @*@Html.ActionLink("Delete", "Delete", "Comment", new { id = Model.CommentID, stringURL = (String)Session["Redirect"] }, null);*@
        <span class="PseudoLink" id="DeleteLink@(Model.CommentID)" onclick="DeleteReply(@Model.CommentID)">Delete</span>
    }
</div>
}